package com.mj.haier.calc.client;

import com.mj.haier.calc.config.FeignConfiguration;
import com.mj.haier.calc.domain.BdGvsItemconfig;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "microfin", path = "/api", fallback = FeignClientHystrix.class, configuration = FeignConfiguration.class)
public interface FinClient {

    @GetMapping("/bd-gvs-itemconfigs/{sourceNameCode}")
    public BdGvsItemconfig getBdGvsItemconfig(@PathVariable("sourceNameCode") String sourceNameCode);
}